package com.eamoi.ajax;
import org.jdom.Element;

public class AjaxMessage {
	private String id = "";
	private String title = "";
	private String author = "";
	private String submittime = "";
	private String qq = "";
	private String msn = "";
	private String yahoo = "";
	private String email = "";
	private String content = "";

	public AjaxMessage() {
		
	}
	public AjaxMessage(Element element) {
		this.id = element.getAttributeValue("id");
		this.title = element.getChildText("title");
		this.author = element.getChildText("author");
		this.submittime = element.getChildText("submittime");
		this.qq = element.getChildText("qq");
		this.msn = element.getChildText("msn");
		this.yahoo = element.getChildText("yahoo");
		this.email = element.getChildText("email");
		this.content = element.getChildText("content");
	}
	public String getId() {
		return this.id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle() {
		return this.title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getAuthor() {
		return this.author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getSubmittime() {
		return this.submittime;
	}
	public void setSubmittime(String submittime) {
		this.submittime = submittime;
	}
	public String getQq() {
		return this.qq;
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	public String getMsn() {
		return this.msn;
	}
	public void setMsn(String msn) {
		this.msn = msn;
	}
	public String getYahoo() {
		return this.yahoo;
	}
	public void setYahoo(String yahoo) {
		this.yahoo = yahoo;
	}
	public String getEmail() {
		return this.email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getContent() {
		return this.content;
	}
	public void setContent(String content) {
		this.content = content;
	}
}
